import request from '@/utils/request'

export function getDmaMinNightFlowData(query) {
  return request({
    url: '/swla2/freezeDma/getDmaMinNightFlowData',
    method: 'get',
    params: query
  })
}

export function getDmaPressureData(query) {
  return request({
    url: '/swla2/freezeDma/getDmaPressureData',
    method: 'get',
    params: query
  })
}

export function getDmaLeakageCompositionData(query) {
  return request({
    url: '/swla2/freezeDma/getDmaLeakageCompositionData',
    method: 'get',
    params: query
  })
}

export function getDmaProdsaleAnalysisData(query) {
  return request({
    url: '/swla2/freezeDma/getDmaProdsaleAnalysisData',
    method: 'get',
    params: query
  })
}

export function getDmaSupplyAnalysisData(query) {
  return request({
    url: '/swla2/freezeDma/getDmaSupplyAnalysisData',
    method: 'get',
    params: query
  })
}

// 查询dma冻结数据列表
export function listByQueryModel(query) {
  return request({
    url: '/swla2/freezeDma/listByQueryModel',
    method: 'get',
    params: query
  })
}

// 查询dma冻结数据列表
export function listFreezeDma(query) {
  return request({
    url: '/swla2/freezeDma/list',
    method: 'get',
    params: query
  })
}

// 查询大分区冻结数据列表-报表
export function listFreezeDmaReport(query) {
  return request({
    url: '/swla2/freezeDma/report/dma',
    method: 'get',
    params: query
  })
}

// 查询dma冻结数据详细
export function getFreezeDma(id) {
  return request({
    url: '/swla2/freezeDma/' + id,
    method: 'get'
  })
}

// 新增dma冻结数据
export function addFreezeDma(data) {
  return request({
    url: '/swla2/freezeDma',
    method: 'post',
    data: data
  })
}

// 修改dma冻结数据
export function updateFreezeDma(data) {
  return request({
    url: '/swla2/freezeDma',
    method: 'put',
    data: data
  })
}

// 删除dma冻结数据
export function delFreezeDma(id) {
  return request({
    url: '/swla2/freezeDma/' + id,
    method: 'delete'
  })
}
